package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.modules.tenant.entity.TTenant;
import org.hibernate.validator.constraints.Length;

public class TWeixinUser extends DataEntity<TWeixinUser> {
  private static final long serialVersionUID = 1L;
  
  private String openid;
  
  private String nickname;
  
  private String sex;
  
  private String language;
  
  private String headimgurl;
  
  private String subscribe;
  
  private Long subscribeTime;
  
  private String unionid;
  
  private String city;
  
  private String country;
  
  private String province;
  
  private Integer uniacid;
  
  private String appid;
  
  private Long unsubscribeTime;
  
  private Long firstTime;
  
  private String tagidList;
  
  private String tenantName;
  
  private TTenant tenant;
  
  public TWeixinUser() {}
  
  public TWeixinUser(String id) {
    super(id);
  }
  
  @Length(min = 0, max = 64, message = "微信ID长度必须介于 0 和 64 之间")
  public String getOpenid() {
    return this.openid;
  }
  
  public void setOpenid(String openid) {
    this.openid = openid;
  }
  
  @Length(min = 0, max = 64, message = "昵称长度必须介于 0 和 64 之间")
  public String getNickname() {
    return this.nickname;
  }
  
  public void setNickname(String nickname) {
    this.nickname = nickname;
  }
  
  @Length(min = 0, max = 2, message = "性别长度必须介于 0 和 2 之间")
  public String getSex() {
    return this.sex;
  }
  
  public void setSex(String sex) {
    this.sex = sex;
  }
  
  @Length(min = 0, max = 64, message = "语言长度必须介于 0 和 64 之间")
  public String getLanguage() {
    return this.language;
  }
  
  public void setLanguage(String language) {
    this.language = language;
  }
  
  @Length(min = 0, max = 255, message = "头像长度必须介于 0 和 255 之间")
  public String getHeadimgurl() {
    return this.headimgurl;
  }
  
  public void setHeadimgurl(String headimgurl) {
    this.headimgurl = headimgurl;
  }
  
  @Length(min = 0, max = 2, message = "是否关注长度必须介于 0 和 2 之间")
  public String getSubscribe() {
    return this.subscribe;
  }
  
  public void setSubscribe(String subscribe) {
    this.subscribe = subscribe;
  }
  
  public Long getSubscribeTime() {
    return this.subscribeTime;
  }
  
  public void setSubscribeTime(Long subscribeTime) {
    this.subscribeTime = subscribeTime;
  }
  
  @Length(min = 0, max = 64, message = "联合ID长度必须介于 0 和 64 之间")
  public String getUnionid() {
    return this.unionid;
  }
  
  public void setUnionid(String unionid) {
    this.unionid = unionid;
  }
  
  @Length(min = 0, max = 100, message = "城市名称长度必须介于 0 和 100 之间")
  public String getCity() {
    return this.city;
  }
  
  public void setCity(String city) {
    this.city = city;
  }
  
  @Length(min = 0, max = 100, message = "国家长度必须介于 0 和 100 之间")
  public String getCountry() {
    return this.country;
  }
  
  public void setCountry(String country) {
    this.country = country;
  }
  
  @Length(min = 0, max = 100, message = "省份长度必须介于 0 和 100 之间")
  public String getProvince() {
    return this.province;
  }
  
  public void setProvince(String province) {
    this.province = province;
  }
  
  @Length(min = 1, max = 32, message = "uniacid长度必须介于 1 和 32 之间")
  public Integer getUniacid() {
    return this.uniacid;
  }
  
  public void setUniacid(Integer uniacid) {
    this.uniacid = uniacid;
  }
  
  @Length(min = 0, max = 64, message = "公众号ID长度必须介于 0 和 64 之间")
  public String getAppid() {
    return this.appid;
  }
  
  public void setAppid(String appid) {
    this.appid = appid;
  }
  
  public Long getUnsubscribeTime() {
    return this.unsubscribeTime;
  }
  
  public void setUnsubscribeTime(Long unsubscribeTime) {
    this.unsubscribeTime = unsubscribeTime;
  }
  
  public Long getFirstTime() {
    return this.firstTime;
  }
  
  public void setFirstTime(Long firstTime) {
    this.firstTime = firstTime;
  }
  
  @Length(min = 0, max = 500, message = "标签列表长度必须介于 0 和 500 之间")
  public String getTagidList() {
    return this.tagidList;
  }
  
  public void setTagidList(String tagidList) {
    this.tagidList = tagidList;
  }
  
  public TTenant getTenant() {
    return this.tenant;
  }
  
  public void setTenant(TTenant tenant) {
    this.tenant = tenant;
  }
  
  public String getTenantName() {
    return this.tenantName;
  }
  
  public void setTenantName(String tenantName) {
    this.tenantName = tenantName;
  }
}
